package com.lorianknights.rpg.data.asset.base
{
	
	public class AchievementBase extends Object
	{
		
		private var _title:String;
		private var _desc:String;
		private var _id:int;
		private var _reward:String;
		private var _linkage:String;
		private var _filename:String;
		
		public function AchievementBase(achBObj:Object)
		{
			
			super();
			
				if ("strTitle" in achBObj)
				{
					
					this._title = String(achBObj.strTitle);
					
				}
				
				if ("strDesc" in achBObj)
				{
					
					this._desc = String(achBObj.strDesc);
					
				}
				
				if ("intAchievementID" in achBObj)
				{
					
					this._id = int(achBObj.intAchievementID);
					
				}
				
				if ("sReward" in achBObj)
				{
					
					this._reward = String(achBObj.sReward);
					
				}
				
				if ("strLinkage" in achBObj)
				{
					
					this._linkage = String(achBObj.strLinkage);
					
				}
				
				if ("sFile" in achBObj)
				{
					
					this._filename = String(achBObj.sFile);
					
				}
		}
		
		public function get sFile():String
		{
			
			return this._filename;
			
		}
		
		public function get strLinkage():String
		{
			
			return this._linkage;
			
		}
		
		public function get sReward():String
		{
			
			return this._reward;
			
		}
		
		public function get strTitle():String
		{
			
			return this._title;
			
		}
		
		public function get strDesc():String
		{
			
			return this._desc;
			
		}
		
		public function get intAchievementID():int
		{
			
			return this._id;
			
		}
		
	}
}